<?php
$baseurl = JURI::base();

$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select("name,clickurl,description,params,type");
$query->from("#__banners");
$query->where("state=1 AND catid=64");
$query->order("id DESC");
$db->setQuery($query);
$lsSlide = $db->loadObjectList();
?>
<div class="neoslideshow">
<?php
foreach ($lsSlide as &$slide){
	$image = $slide->params;
	$obj = json_decode($image);
	?>
	<img src="<?php echo $baseurl.$obj->{'imageurl'};?>" width="962" height="200" />
	<?php
}
?>
</div>
<script>
$(document).ready(function(){
	$('.neoslideshow img:gt(0)').hide();
	setInterval(function(){
      $('.neoslideshow :first-child').fadeOut()
         .next('img').fadeIn()
         .end().appendTo('.neoslideshow');}, 
      6000);
})
</script>